package code;

public class A {

	public static void main(String[] args) {
		System.out.println();

	}
	public String plusOut(String str, String word) {
		  String str2="";
		  for(int i=0; i<str.length()-word.length()+1;)
		  {
		    if(str.substring(i,i+word.length()).equals(word)){
		      str2+=word;
		      i+=word.length();
		    }else{
		      str2+="+";
		      i++;
		    }
		  }
		 
		  for(int j=0; j<str.length()-str2.length(); j++){
		      str2+="+";
		    }
		  return str2;
		}


}
